package com.dkm.ec.sale.strategy.impl;

import java.util.List;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.ec.sale.context.StrategySaleContext;
import com.dkm.ec.sale.persistence.entity.SaleEntityPo;
import com.dkm.ec.sale.persistence.entity.SaleSkuPo;
import com.dkm.ec.sale.repository.SaleSkuRepository;
import com.dkm.ec.sale.strategy.RecommendSaleStrategy;

public class CommonSaleManualStrategyImpl implements RecommendSaleStrategy{

	@Override
	public List<SaleEntityPo> find(StrategySaleContext context, Integer count) {
		// TODO 不用管
		return null;
	}

	@Override
	public List<SaleSkuPo> findSku(StrategySaleContext context, Integer count) {
		// TODO Auto-generated method stub
		SaleSkuRepository saleSkuRepository = SpringHelper.getBean(SaleSkuRepository.class);
		if(context == null) context = new StrategySaleContext();
		return saleSkuRepository.findSaleSku( context.getUserId(),  context.getProductSkuId(),  count);
		//return saleSkuRepository.findSaleSku( context.getUserId(),  context.getProductSkuId(),  context.getProductId(),context.getCateId(),count);
	}


}
